package tools;

import java.util.Vector;

import application.ToolController;

public class ToolList
{
	// Components
	private Vector<Object> list;
	
	// Constructor
	public ToolList(){ list = new Vector<Object>(5,1); }
	
	/**
	 * Adds the specified ToolController to the list
	 * 
	 * @param item ToolController to add
	 */
	public void add(ToolController item)
	{
		if(item != null)
			list.add(item);
	}
	
	/**
	 * Creates an iterator at the beginning element of this ToolList
	 * 
	 * @return a ToolListIterator for this ToolList
	 */
	public ToolListIterator iterator(){ return new ToolListIterator(list); }
}
